<?php
  
class Account_Model extends Model_Abstract 
{
    public function __construct($db)
    {
    	parent::__construct($db);
    }
    public function fillAccount(Account_Item $account) {
    	$result = $this->db->query("SELECT * FROM wm_account WHERE id=".$account->getId());
    	while ($row = $result->fetch_assoc())
    	{
    		$account->setLogin($row['login']);
    		$account->setPasswd($row['passwd']);
    	}
    }
    
}
?>
